package com.test.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@ApiModel("用户表")
public class UserInfo {
    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("用户手机号")
    @NotBlank(message = "用户手机号不允许为空")
    private String mobilePhone;

    @ApiModelProperty("用户头像")
    private String icon;

    @ApiModelProperty("登录密码，md5")
    private String password;

    @ApiModelProperty("用户状态(0:正常；1：销户；2：锁定)")
    private Integer status;

    @ApiModelProperty("create_time")
    private Date createTime;

    @ApiModelProperty("update_time")
    private Date updateTime;

}